package cn.gok.common.entity.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 描述： 顾客账户余额变动
 * @author shikundai
 * @date 2020/12/10
 * @time 17:20
 */
@Data
@TableName("c_balance_log")
public class CustomerBalanceLog {
    /**
     * 描述：变更记录ID
     * @author shikundai
     * @date 2020/12/10
     * @time 17:27
     */
    @TableId(value = "BALANCE_ID",type = IdType.ASSIGN_ID)
    private Long balanceId;
    /**
     * 描述：登录用户ID
     * @author shikundai
     * @date 2020/12/10
     * @time 17:28
     */
    @TableField("CUSTOMER_ID")
    private String customerId;
    /**
     * 描述：记录来源：1：下订单   2：退货单
     * @author shikundai
     * @date 2020/12/10
     * @time 17:28
     */
    @TableField("SOURCE")
    private int source;
    /**
     * 描述：相关单据号
     * @author shikundai
     * @date 2020/12/10
     * @time 17:29
     */
    @TableField("SOURCE_SN")
    private String sourceSn;
    /**
     * 描述：变动额度
     * @author shikundai
     * @date 2020/12/10
     * @time 17:29
     */
    @TableField("AMOUNT")
    private Integer amount;
    /**
     * 描述：被冻结的金额()
     * @author shikundai
     * @date 2020/12/10
     * @time 17:30
     */
    @TableField("FROZEN_MONEY")
    private Integer frozenMoney;
    /**
     * 描述：记录生成时间
     * @author shikundai
     * @date 2020/12/10
     * @time 17:30
     */
    @TableField("CREATE_TIME")
    private Date createTime;
    /**
     * 描述：消费记录说明
     * @author shikundai
     * @date 2020/12/10
     * @time 17:31
     */
    @TableField("CHANGE_DESC")
    private String changeDesc;
}
